import React from 'react'
import { MicroAppWithMemoHistory } from 'umi';

export default function App1page1() {
  const [app2Page, setAppPage] = React.useState('app2')
  const changeApp2 = () => {
    setAppPage('/home')
  }
  return (
    <div>
      <button onClick={changeApp2}>打开App2 home 页</button>
      App1page1
      <div>
        <MicroAppWithMemoHistory name='app2' url={app2Page} />
      </div>
    </div>
  )
}
